package com.travel.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

/**
 * @Author:Jasenon_ce
 * @Date: 2025/03/13/下午2:12
 */
@Data
@TableName("carousel")
@ApiModel(value = "轮播图上传DTO", description = "轮播图上传转存到数据库")
@Builder
public class CarouselUploadDTO {

    @NotBlank(message = "图片不能为空")
    @ApiModelProperty("图片base64编码")
    private String base64;

    @NotBlank(message = "标题不能为空")
    @ApiModelProperty("图片标题")
    private String title;

    @ApiModelProperty("图片说明")
    private String caption;

    @ApiModelProperty("跳转链接")
    private String linkUrl;

    @NotNull(message = "请设置是否激活")
    @ApiModelProperty("是否激活")
    private Integer isActive;

}
